<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title>更新栏目</title>
		<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="../static/web/css/admin.css">
	</head>
	<body>
		<table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">
			<form name="form1" action="makehtml_list_action.php" method="get" target="stafrm">
				<tr>
					<td bgcolor="#f5f5f5" colspan="2">更新栏目</td>
				</tr>
				<tr>
					<td width="260">选择栏目：</td>
					<td>
						<?php
						if (empty($cid)) $cid=0;
						$tl = new TypeLink($cid);
						$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1);
						echo "<select name='typeid' class='admin-input-sm'>";
						if ($cid=='0') echo "<option value='0' selected='1'>更新所有栏目</option>";
						echo $typeOptions;
						echo "</select>";
						?>
					</td>
				</tr>
				<tr>
					<td>每页更新：</td>
					<td><input name="maxpagesize" type="text" id="maxpagesize" value="50" class="admin-input-sm">（网页）</td>
				</tr>
				<tr>
					<td>是否更新子栏目：</td>
					<td>
						<label><input type="radio" name="upnext" value="1" checked="1"> 更新子级栏目</label>
						<label><input type="radio" name="upnext" value="0"> 仅更新所选栏目</label>
					</td>
				</tr>
				<tr>
					<td bgcolor="#e9ecef" colspan="2" align="center">
						<button type="submit" name="b112" class="btn btn-success btn-sm">开始更新</button>
						<button type="button" class="btn btn-outline-success btn-sm" onclick="location='catalog_main.php';">栏目管理</button>
					</td>
				</tr>
			</form>
			<tr>
				<td colspan="2">结果：</td>
			</tr>
			<tr>
				<td colspan="2" id="mtd">
					<div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
				</td>
			</tr>
		</table>
	</body>
</html>